package de.tum.beilmaier.im.client;

import java.util.Date;
import java.util.HashMap;

import de.tum.beilmaier.im.client.bundle.ChatRoomBundle;
import de.tum.beilmaier.im.shared.model.ChatRoom;
import de.tum.beilmaier.im.shared.model.User;

public class UserSessionHandler {

	private User loginuser = null;
	private Date logintime = null;
	private HashMap<String, ChatRoomBundle> userChatRoomBundles = null;
	
	public UserSessionHandler() {
		userChatRoomBundles = new HashMap<String, ChatRoomBundle>();
		
	}

	
	
	public HashMap<String, ChatRoomBundle> getUserChatRoomBundles() {
		return userChatRoomBundles;
	}

	public void setUserChatRoomBundles(HashMap<String, ChatRoomBundle> userChatRooms) {
		this.userChatRoomBundles = userChatRooms;
	}

	public User getLoginUser() {
		return loginuser;
	}

	public void setLoginUser(User loginuser) {
		this.loginuser = loginuser;
	}

	public Date getLoginTime() {
		return logintime;
	}

	public void setLoginTime(Date logintime) {
		this.logintime = logintime;
	}



//	public void removeChatRoomBundle(ChatRoom toclose) {
//	System.out.println("Remove ChatRoomBundle from User..");
//	userChatRooms.remove(toclose.getUUID());
//	}


}
